SetComboAutoGenerate {Cold Formed}

SetComboAutoGenerate

Syntax

SapObject.SapModel.DesignColdFormed.SetComboAutoGenerate

VB6 Procedure

Function SetComboAutoGenerate(ByVal AutoGenerate As Boolean) As Long

Parameters

AutoGenerate

If this item is True, the option to automatically generate code-based design load combinations for cold formed frame design is turned on. If it is False, the option is turned off.

Remarks

This function turns on or off the option to automatically generate code-based design load combinations for cold formed frame design.

The function returns zero if the options are successfully set; otherwise it returns a nonzero value.

VBA Example

Sub SetColdFormedDesignComboAutoGenerate()

'dimension variables

Dim SapObject as cOAPI

Dim SapModel As cSapModel

Dim ret As Long

'create Sap2000 object

Set SapObject = CreateObject("CSI.SAP2000.API.SapObject")

'start Sap2000 application

SapObject.ApplicationStart

'create SapModel object

Set SapModel = SapObject.SapModel

'initialize model

ret = SapModel.InitializeNewModel

'create model from template

ret = SapModel.File.New2DFrame(PortalFrame, 2, 144, 2, 288)

'add load pattern

ret = SapModel.LoadPatterns.Add("LIVE", LTYPE_LIVE)

'set option to not auto generate code-based design load combinations

ret = SapModel.DesignColdFormed.SetComboAutoGenerate(False)

'close Sap2000

SapObject.ApplicationExit False

Set SapModel = Nothing

Set SapObject = Nothing

End Sub

Release Notes

Initial release in version 18.1.0.

See Also

GetComboAutoGenerate